import request from "@/utils/request";

export function listUserAuth(params) {
  return request({
    url: "/user-auth",
    method: "get",
    params,
  });
}

export function listPageUserAuth(params) {
  return request({
    url: "/user-auth/page",
    method: "get",
    params,
  });
}

export function saveUserAuth(params) {
  return request({
    url: "/user-auth",
    method: "post",
    data: params,
  });
}

export function updateUserAuth(id,params) {
  return request({
    url: `/user-auth/${id}`,
    method: "put",
    data: params,
  });
}

export function deleteUserAuth(id) {
  return request({
    url: `/user-auth/${id}`,
    method: "delete",
  });
}

export function deleteBatchUserAuth(idList) {
  return request({
    url: `/user-auth/batch`,
    method: "delete",
    data: idList,
  });
}

export function getUserAuthById(id) {
  return request({
    url: `/user-auth/${id}`,
    method: "get",
  });
}

